package net.mikoo.seals.biz.mapper;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;

import net.mikoo.seals.model.Apply;
import net.mikoo.seals.model.ApplyQuery;
import net.mikoo.seals.model.ApplyUpfile;
import net.mikoo.seals.model.Upfile;

@MapperScan
public interface ApplyMapper {
	
	Integer insert(Apply apply);
	
	Integer update(Apply apply);
	
	Apply selectInfoById(Long applyId);
	
	List<Apply> selectByQueryToPage(ApplyQuery query);
	
	Integer countByQueryToPage(ApplyQuery query);
	
	Apply selectInfoByQuery(ApplyQuery query);
	
	Integer delete(Apply apply);

	Integer updateChangeStatus(Apply apply);

	Integer insertUpfile(ApplyUpfile upfile);

	List<Upfile> selectApplyfiles(Long applyId);

	List<Apply> selectListByQuery(ApplyQuery query);
}